package com.rth.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum VedioTypeEnum {

    MOVIE(1,"电影"),
    DramaSeries(2,"剧集"),
    ANIMATION(3,"动画");


    private int code;
    private String description;
    public static VedioTypeEnum getVedioTypeEnum(int code) {
        for (VedioTypeEnum vedioTypeEnum : VedioTypeEnum.values()) {
            if (vedioTypeEnum.getCode() == code) {
                return vedioTypeEnum;
            }
        }
        return null;
    }
}
